package com.openlogic.common.logic.node.enums;

/**
* @ClassName: OpTypeEnums
* @Description: 操作符枚举类
* @author weiyongpeng
* @date 2024年11月30日 下午3:54:58
 */
public enum OpTypeEnums {
	
	CONTAINS("COT",".contains(", ")",""),	 	 // 包含
	INCLUDE("include","include(%s,%s)", "",""),	 	 // 包含
	NOT_CONTAINS("NCT",".notcontains(", ")",""),  // 不包含
	CONTAINS_ANY("COTA",".contains(", ")", ""),	 // 包含任意一个
	CONTAINS_NULL("COTN",".contains(", ")", ""), // 不包含任意一个
	IS_EMPTY("EMPTY",".contains(", ")", ""),	 // 为空
	NOT_EMPTY("NOTEMPTY",".isAnyEmpty(", ")", "!"); // 不为空
	
	/**
	 * 编码code
	 */
	private String code;
	
	/**
	 * 前缀
	 */
	private String operatePrefix;
	
	/**
	 * 后缀
	 */
	private String operateSuffix;
	
	/**
	 * 修饰符
	 */
	private String otherModifier;

	private OpTypeEnums(String code, String operatePrefix, String operateSuffix, String otherModifier) {
		this.code = code;
		this.operatePrefix = operatePrefix;
		this.operateSuffix = operateSuffix;
		this.otherModifier = otherModifier;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getOperatePrefix() {
		return operatePrefix;
	}

	public void setOperatePrefix(String operatePrefix) {
		this.operatePrefix = operatePrefix;
	}

	public String getOperateSuffix() {
		return operateSuffix;
	}

	public void setOperateSuffix(String operateSuffix) {
		this.operateSuffix = operateSuffix;
	}

	public String getOtherModifier() {
		return otherModifier;
	}

	public void setOtherModifier(String otherModifier) {
		this.otherModifier = otherModifier;
	}

}